<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Login</title>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="css/login.css">
	
	<!-- <script type="text/javascript" src="js/jquery-2.0.0.js"></script> -->
	<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/login/login.js"></script>
	
	<script type="text/javascript"></script>
	
  </head>
  
  
  <body style="background: url('images/login_background6.jpg') no-repeat center center fixed;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover; ">
	<div id="main" align="center">
		
		<div id="form_div">
			<form class="form-horizontal" method="post" role="form" action="login">
				<div id="msg" class="text-danger">${responseMsg }</div>
				<div class="form-group">
					<div class="col-sm-10">
						<input id="username" name="user.username" type="text" class="form-control" value="${sessionScope.user.username }" placeholder="请输入用户名">
					</div>
					<label class="glyphicon glyphicon-user col-sm-1 control-label" for="username"></label>
				</div>
				<div class="form-group">
					<div class="col-sm-10">
						<input id="password" name="user.password" type="password" class="form-control" value="${sessionScope.user.password }" placeholder="请输入密码">
					</div>
					<label class="glyphicon glyphicon-lock col-sm-1 control-label" for="password"></label>
				</div>
				<div class="form-group">
					<div class="col-sm-4">
						<div class="checkbox">
							<input id="remenberMe" name="remenberMe" onchange="checkBox(this)" type="checkbox" value="0"><label style="color: gray;">记住我</label>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2" align="left">
						<button onclick="login(this)" type="button" class="btn btn-primary btn-sm">登 录</button>&nbsp;&nbsp;&nbsp;&nbsp;
						<button type="reset" class="btn btn-primary btn-sm">重 置</button>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-9" align="right" style="position:relative ;margin-top:-35px;border:0px solid red;">
						<a href="http://www.baidu.com" target="_block">忘记密码?</a>
					</div>
				</div>
			</form>
		</div>
	</div>
	
	<div id="loading_img"><img src="<%=basePath %>images/loading_wy.gif" width="100px" height="100px" /></div>
  </body>
</html>
